﻿@using Telerik.Web.Mvc.UI;
@model IridiumTest.Models.Continuous._Normal
@{
    ViewBag.Title = "Normal";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Model.Titulo &nbsp; &nbsp; <a href=@(Model.link) ><img alt="@Model.Formulates[0].NombreFormula" src="@Url.Action("getImg", "Normal", new { Id=-1})" height="80" width="100" class="item"></img></a></h2>
<div class="row-fluid">
    <div class="span12">
        @Html.TextAreaFor(m => m.Definicion, new {style="width:100%" })
    </div>
</div>
<div class="row-fluid">
    <div class="span4">
        @*Parametros*@
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box black">
                    <div class="portlet-title">
                        <h4>Parametros</h4>
                        @using (Html.BeginForm("Index", "Normal", FormMethod.Post, new { @class = "form-horizontal" }))
                        {
                            @Html.ValidationSummary(true)
                            <div class="portlet-body">
                                <table class="table table-hover">
                                    <tbody>
                                        <tr><td>@Model.ParamsIN[0].nombre</td><td>@Html.Telerik().NumericTextBoxFor(m=>m.ParamsIN[0].valorD).InputHtmlAttributes(new { style = "width: 50px;" }).MinValue(0).IncrementStep(0.01)</td><td>@Model.ParamsIN[0].rango</td></tr>
                                        <tr><td>@Model.ParamsIN[1].nombre</td><td>@Html.Telerik().NumericTextBoxFor(m=>m.ParamsIN[1].valorD).InputHtmlAttributes(new { style = "width: 50px;" }).MinValue(0).IncrementStep(0.01)</td><td>@Model.ParamsIN[1].rango</td></tr>
                                        <tr><td>@Model.ParamsIN[2].nombre</td><td>@Html.Telerik().IntegerTextBoxFor(m=>m.ParamsIN[2].valorI).InputHtmlAttributes(new { style = "width: 50px;" }).MinValue(0).IncrementStep(1)</td><td>@Model.ParamsIN[2].rango</td></tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="span12">
                                <div class="span6"><button type="submit" class="btn btn-inverse" value="Create">Calcular</button></div>
                                <div class="span6"><a class="btn btn-inverse" style="color: #E6F0F2" href="@Url.Action("Index", "ParametrosSencibles", new { Area="Simulaciones",idProyecto=ViewBag.ProyectoId  })">Regresar</a></div>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
        @*Formulas*@
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box black">
                    <div class="portlet-title">
                        <h4>Fórmulas</h4>
                        <div class="portlet-body">
                            <table class="table table-hover">
                                <tr><td>@Model.Formulates[0].NombreFormula</td><td><img alt="@Model.Formulates[0].NombreFormula" src="@Url.Action("getImg", "Normal", new { Id=0})" height="10" width="20" class="item" /></td></tr>
                                <tr><td>@Model.Formulates[1].NombreFormula</td><td><img alt="@Model.Formulates[1].NombreFormula" src="@Url.Action("getImg", "Normal", new { Id=1})" height="10" width="30" class="item" /></td></tr>
                                <tr><td>@Model.Formulates[2].NombreFormula</td><td><img alt="@Model.Formulates[2].NombreFormula" src="@Url.Action("getImg", "Normal", new { Id=2})" height="10" width="10" class="item" /></td></tr>
                                <tr><td>@Model.Formulates[3].NombreFormula</td><td><img alt="@Model.Formulates[3].NombreFormula" src="@Url.Action("getImg", "Normal", new { Id=3})" height="60" width="100" class="item" /></td></tr>
                                
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        @*Caracteristicas*@
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box black">
                    <div class="portlet-title">
                        <h4>Características</h4>
                        <div class="portlet-body">
                            <table class="table table-hover">
                                <tbody>
                                    <tr><td>@Model.ParamsOUT[0].nombre</td><td>@Html.Telerik().IntegerTextBoxFor(m=>m.ParamsOUT[0].valorI).InputHtmlAttributes(new { style = "width: 50;" }).Enable(false)</td><td>@Model.ParamsOUT[0].rango</td></tr>
                                    <tr><td>@Model.ParamsOUT[1].nombre</td><td>@Html.Telerik().IntegerTextBoxFor(m=>m.ParamsOUT[1].valorI).InputHtmlAttributes(new { style = "width: 50;" }).Enable(false)</td><td>@Model.ParamsOUT[1].rango</td></tr>
                                    <tr><td>@Model.ParamsOUT[2].nombre</td><td>@Html.Telerik().NumericTextBoxFor(m=>m.ParamsOUT[2].valorD).InputHtmlAttributes(new { style = "width: 50;" }).Enable(false)</td><td>@Model.ParamsOUT[2].rango</td></tr>
                                    <tr><td>@Model.ParamsOUT[3].nombre</td><td>@Html.Telerik().IntegerTextBoxFor(m=>m.ParamsOUT[3].valorI).InputHtmlAttributes(new { style = "width: 50;" }).Enable(false)</td><td>@Model.ParamsOUT[3].rango</td></tr>
                                    <tr><td>@Model.ParamsOUT[4].nombre</td><td>@Html.Telerik().IntegerTextBoxFor(m=>m.ParamsOUT[4].valorI).InputHtmlAttributes(new { style = "width: 50;" }).Enable(false)</td><td>@Model.ParamsOUT[4].rango</td></tr>
                                    <tr><td>@Model.ParamsOUT[5].nombre</td><td>@Html.Telerik().NumericTextBoxFor(m=>m.ParamsOUT[6].valorD).InputHtmlAttributes(new { style = "width: 50;" }).Enable(false)</td><td>@Model.ParamsOUT[5].rango</td></tr>
                                    <tr><td>@Model.ParamsOUT[6].nombre</td><td>@Html.Telerik().NumericTextBoxFor(m=>m.ParamsOUT[6].valorD).InputHtmlAttributes(new { style = "width: 50;" }).Enable(false)</td><td>@Model.ParamsOUT[6].rango</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="span8">
        <div class="row-fluid">
            <div class="span6" style="text-align:center">
                @{Html.RenderAction("_GraficoProbabilidad", "Normal");}
            </div>
            <div class="span6" style="text-align:center">
                @{Html.RenderAction("_GraficoMuestra", "Normal");}
            </div>
        </div>
        <div class="row-fluid">
            <div class="span12" style="text-align:center">
                @{Html.RenderAction("_Resumen", "Normal");}
            </div>
        </div>
    </div>
</div>